from ultralytics import YOLO
model = YOLO("best.pt")   # 替换为实际模型路径
print(model.names)   # 确认类别标签加载正常